<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<title></title>
		<link rel="stylesheet" href="css/muse-ui.css">
		<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,400italic">
		<link rel="stylesheet" href="https://cdn.bootcss.com/material-design-icons/3.0.1/iconfont/material-icons.css">
		<link rel="stylesheet" href="css/muse-ui-loading.css">
		<link rel="stylesheet" href="https://at.alicdn.com/t/font_951857_sr7zod4vu4.css">
		<script src="js/vue.min.js"></script>
		<script src="js/muse-ui.js"></script>
		<script src="js/muse-ui-loading.js"></script>
		<script src="js/muse-ui-toast.js"></script>
		<script src="js/axios.min.js"></script>
		<script src="js/mui.min.js"></script>
		<script src="js/utils.js"></script>
		<script src="js/jquery.js"></script>
		<script src="js/jSignature.min.js"></script>
		<style>
			.container{
				height:calc(100vh);
				width: 100%;
			}
			.container input {
				color: #ff4081;
			}
			.login-head{
				margin-top: 20%;
				width: 100%;
				text-align: center;
			}
			.icon-denglu{
				color: #fff;
				font-size: 70px;
			}
		</style>
	</head>
	<body>
		<div id="body">
				<mu-appbar style="width: 100%;position: fixed;top: 0;padding-top: 20px;height: auto;" color="primary">
				<mu-button icon slot="left" @click="back()">
					<mu-icon value="arrow_back"></mu-icon>
				</mu-button>
				检查人签字确认
			</mu-appbar>
			<mu-container style="padding-top: 106px;">
				<div id="signature" style="background-color: #FFC073;"></div>
				<div style="position: fixed;right: 0;bottom: 50px;">
					<mu-button @click="clear()">清空</mu-button>
					<br />
					<br />
					<br />
					<br />
					<br />
					<mu-button @click="next()" color="primary">下一步</mu-button>
				</div>
			</mu-container>
		</div>
	</body>
	<script type="text/javascript">
		var vm = new Vue({
			el: "#body",
			data() {
				return {
				}
			},
			methods: {
				next(){
					util.setData("workerSign",signature.jSignature("getData", "svgbase64"));
					util.openWindow("safeCheck_finish.html")
				},
				clear(){
					signature.jSignature("clear")
				},
				back(){
					mui.back()
				}
			}
		})
		var signature;
		document.addEventListener('plusready', function() {
			plus.screen.lockOrientation('landscape'); //锁死屏幕方向为横屏
			signature = $("#signature").jSignature({
				width:"100%",
				height:"200px"
			});
		});
	</script>
</html>
